# n = 10
# while n > 0:
#     if(n==5):
#         n=n-1
#         #break   #跳出所有的循环,循环终止
#         continue     #跳出本次循环，循环继续
#     print(n)
#     n = n - 1

# for i in range(3):
# #     name = int(input("请输入用户名："))
# #     password = int(input("请输入密码："))
# #     if name == "hangzhou" and password == "jbkj":
# #         print("登录成功")
# #         break
# #     else:
# #         print("登录失败")
# #         print("你还有%d次机会登录" % (2 - i))
# # else:
# #     print("登录失败，请于120S后再次登录")

# n = 3
# while n > 0:
#     a = input('input:')
#     if a=='name':
#         print('登陆成功')
#     else:
#         print('登陆失败')

n = 3
while n > 0:
    username = input('input:')
    password = input('input:')
    if username == '1' and password == '2':
        print('登录成功')
    else:
         print('登录失败')